/* TabsContainer 样式 */
.tabs_container {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.tab-label {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.tab-label:hover {
    background-color: #f5f5f5;
}

.tab-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.tab-text {
    font-size: 14px;
    user-select: none;
}

/* 右键菜单触发器 */
.context-menu-trigger {
    position: fixed;
    z-index: 9999;
}

/* 拖拽状态样式 */
.tabs_container .ant-tabs-tab {
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
    will-change: transform;
}

.tabs_container .ant-tabs-tab.dragging {
    opacity: 0.8;
    transform: scale(1.02);
    transition: none !important;
    z-index: 1000;
}

/* 点击时防止抖动 */
.tabs_container .ant-tabs-tab:not(.dragging):active {
    transform: scale(0.98);
}

/* 确保拖拽时不触发点击效果 */
.tabs_container .ant-tabs-tab.dragging * {
    pointer-events: none;
}

/* 标签页激活状态 */
.tabs_container .ant-tabs-tab-active .tab-label {
    background-color: #e6f7ff;
    color: #1890ff;
}

/* 标签页关闭按钮 */
.tabs_container .ant-tabs-tab-btn .anticon-close {
    margin-left: 4px;
    font-size: 12px;
    opacity: 0.45;
    transition: opacity 0.2s;
}

.tabs_container .ant-tabs-tab-btn .anticon-close:hover {
    opacity: 1;
}
.ant-tabs-ink-bar {
  transition: none !important;
}
.ant-tabs-tab {
  transition: none !important;
}
.tab-label {
  will-change: transform;
}
.tabs_container .dragging {
  opacity: 0.9;
}